package com.ruoyi.buss.qmcy.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.buss.qmcy.mapper.QmcyCustCdsdMapper;
import com.ruoyi.buss.qmcy.domain.QmcyCustCdsd;
import com.ruoyi.buss.qmcy.service.IQmcyCustCdsdService;

/**
 * 支行存贷时点Service业务层处理
 * 
 * @author sxy
 * @date 2021-07-16
 */
@Service
public class QmcyCustCdsdServiceImpl implements IQmcyCustCdsdService 
{
    @Autowired
    private QmcyCustCdsdMapper qmcyCustCdsdMapper;

    /**
     * 查询支行存贷时点
     * 
     * @param xfsjc 支行存贷时点ID
     * @return 支行存贷时点
     */
    @Override
    public QmcyCustCdsd selectQmcyCustCdsdById(String xfsjc)
    {
        return qmcyCustCdsdMapper.selectQmcyCustCdsdById(xfsjc);
    }

    /**
     * 查询支行存贷时点列表
     * 
     * @param qmcyCustCdsd 支行存贷时点
     * @return 支行存贷时点
     */
    @Override
    public List<QmcyCustCdsd> selectQmcyCustCdsdList(QmcyCustCdsd qmcyCustCdsd)
    {
        return qmcyCustCdsdMapper.selectQmcyCustCdsdList(qmcyCustCdsd);
    }

    /**
     * 新增支行存贷时点
     * 
     * @param qmcyCustCdsd 支行存贷时点
     * @return 结果
     */
    @Override
    public int insertQmcyCustCdsd(QmcyCustCdsd qmcyCustCdsd)
    {
        return qmcyCustCdsdMapper.insertQmcyCustCdsd(qmcyCustCdsd);
    }

    /**
     * 修改支行存贷时点
     * 
     * @param qmcyCustCdsd 支行存贷时点
     * @return 结果
     */
    @Override
    public int updateQmcyCustCdsd(QmcyCustCdsd qmcyCustCdsd)
    {
        return qmcyCustCdsdMapper.updateQmcyCustCdsd(qmcyCustCdsd);
    }

    /**
     * 批量删除支行存贷时点
     * 
     * @param xfsjcs 需要删除的支行存贷时点ID
     * @return 结果
     */
    @Override
    public int deleteQmcyCustCdsdByIds(String[] xfsjcs)
    {
        return qmcyCustCdsdMapper.deleteQmcyCustCdsdByIds(xfsjcs);
    }

    /**
     * 删除支行存贷时点信息
     * 
     * @param xfsjc 支行存贷时点ID
     * @return 结果
     */
    @Override
    public int deleteQmcyCustCdsdById(String xfsjc)
    {
        return qmcyCustCdsdMapper.deleteQmcyCustCdsdById(xfsjc);
    }
}
